<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%-- Using Struts2 Tags in JSP --%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
    <link rel="stylesheet" href="style.css" />
    <title>NetConsole</title>
</head>
<body>
    <s:if test="%{#session['connecte']==true}" >
    <table id='accueil1'><tr class="tr-top2">
        <th class="tr-top2" vertical-align="text-top" ><div><h4> NetConsole <h4></th></div>
        <th class="tr-top2">
        <h2 id="logout">Connected as <s:property value="%{#session['id']}"/> | <a href="logout">logout</a></h2>
        <h2>
            <s:if test="%{#session['droits']>=2}" >
                <div align="right"><s:form action="listEq"><s:submit value="List Equipments"></s:submit></s:form></div>
                <div align="right"><s:form action="gotoAddEq"><s:submit value="Add Equipment"></s:submit></s:form></div>
            </s:if>
            <s:if test="%{#session['droits']>=3}" >
                <div align="right"><s:form action="list"><s:submit value="List Users"></s:submit></s:form></div>
            </s:if>
        </h2>
        </th>
    </tr></table>
    </s:if>
    
</body>
